/**
 * @description Description
 *
 * @author Candy <candy.yan@motionglobal.com>
 * @date  Creation Date 2018/7/24
 */

const baseMockUrl = "http://mock-data-data-api";

var status1 = 'wait-to-confirm';
var status2 = 'confirmed';
var status3 = 'wait-to-ship';
var status4 = 'shipped';

const ApiPath = {
    user: {
        login: baseMockUrl + "/api/user/login",
        passwordReset: baseMockUrl + "/api/user/password-reset",
        logout: baseMockUrl + "/api/user/logout",
        getUserInfo: baseMockUrl + "/api/user"
    },
    supplierPO: {
        waitToConfirm: baseMockUrl + '/api/supplier-PO?status=' + status1,
        waitToConfirmSubmit: baseMockUrl + '/api/supplier-PO/wait-to-confirm',
        waitToConfirmExcelExport: baseMockUrl + '/api/supplier-PO/wait-to-confirm/excel-export',
        waitToConfirmExcelImport: baseMockUrl + '/api/supplier-PO/wait-to-confirm/excel-import',
        confirmed: baseMockUrl + '/api/supplier-PO?status=' + status2,
        confirmedSearch: baseMockUrl + '/api/supplier-PO/confirmed',
        waitToShip: baseMockUrl + '/api/supplier-PO?status=' + status3,
        waitToShipExcelExport: baseMockUrl + '/api/supplier-PO/wait-to-ship/excel-export',
        waitToShipExcelImport: baseMockUrl + '/api/supplier-PO/wait-to-ship/excel-import',
        waitToShipSearch: baseMockUrl + '/api/supplier-PO/wait-to-ship',
        waitToShipSubmit: baseMockUrl + '/api/supplier-PO/wait-to-ship',
        createShipUploadInvoice: baseMockUrl + '/api/supplier-PO/wait-to-ship/create-ship/upload-invoice',
        createShipSubmit: baseMockUrl + '/api/supplier-PO/wait-to-ship/create-ship',
        shipped: baseMockUrl + '/api/supplier-PO?status=' + status4,
        shipmentSearch: baseMockUrl + '/api/supplier-PO/shipped',
        shipmentDetail: baseMockUrl + '/api/supplier-PO/shipped/shipment-detail',
    }
}


export default  ApiPath
